package daily.nov1112;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.Random;

public class Nov14_TeamBuildingRandomSelect {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        Collections.addAll(list,
                "冯永彬", "雷雨", "韦文倩", "秦相玉", "罗婷婷",
                "刘海源", "肖琴", "唐怡", "黄姝", "刘小均",
                "李昱嶙", "伍铃铃", "况红", "杜贝", "袁梅",
                "陈晓虹", "税思蔓", "熊思丽", "文林", "赵润龙",
                "潘成", "刘希鹏", "苏宇恒", "王开心", "刘航行",
                "宋江林", "焦一诺", "范鹏飞", "郑杰", "李衡",
                "胡鑫宇", "何正浩", "陈涵", "毛龙华", "何苗",
                "魏杰", "邱廷鸿", "付钦钦", "景茂洋", "李智",
                "陈虹蓉", "罗富城", "邓渊渊", "王雨",
                "岳星", "杨杰", "张冷", "蒋洲",
                "王兴源", "张倩", "陈泰莉", "方瑶");
        Collections.shuffle(list);
        Random random = new Random();
        HashSet<String> luckyGuys = new HashSet<>();
        while (luckyGuys.size() < 6) {
            luckyGuys.add(list.get(random.nextInt(list.size())));
        }
        System.out.println(luckyGuys);
    }
}
